-- cmd_skill_option
-- Create by panyl
-- 给英雄佩戴技能

function Operation.cmd_skill_option(classId, skills)
    -- 客户端自行佩戴
    if not PetM.setSkillOption(classId, skills) then
        return;
    end

    -- 需要进行同步
    local v = { ["class_id"] = classId, ["option"] = to_mapping(skills), };
    SyncM.addMessage("CMD_SKILL_OPTION", v);
    SyncM.startSync();

    --Communicate.send("CMD_SKILL_OPTION", { ["class_id"] = classId, ["option"] = skills, });
end
